home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3652 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.2 KB  |  36 lines

  1. Newsgroups: comp.lang.c++
  2. Path: cs.vu.nl!jalten
  3. From: jalten@cs.vu.nl (Alten JP)
  4. Subject: Re: Check for dll
  5. Nntp-Posting-Host: kits.cs.vu.nl
  6. References: <31063440.2CDE@ubs.ch>
  7. Sender: news@cs.vu.nl
  8. Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
  9. Date: Thu, 25 Jan 1996 11:02:11 GMT
  10. X-Newsreader: TIN [version 1.2 PL2]
  11. Message-ID: <DLqHBn.6GK.0.-s@cs.vu.nl>
  12.  
  13. Daniel Ponti (daniel.ponti@ubs.ch) wrote:
  14. : Is there a possibility to check for a specific dll in the memory?
  15. : I have not found a windows api function. There is only one to free
  16. : a dll by its handler (FreeLibrary) and one to load a dll
  17. : (LoadLibrary) but no one for check a dll already in the memory.
  18.  
  19. Use ModuleFirst/ModuleNext to walk through the list of loaded
  20. modules, and see if it's there. You can use the MODULEENTRY
  21. struct to see how many times (MODULEENTRY::wcUsage) it is
  22. loaded. I think you'll have to include <toolhelp.h> to access
  23. the function.
  24.  
  25. You might get more responses in the windows.programmers groups 
  26. though.
  27.  
  28. Have fun,
  29.  
  30. Jelle Paul
  31.  
  32. +-------------------------------------------------------+
  33. | Jelle Paul Alten                |   jalten@cs.vu.nl   |
  34. | Vrije Universiteit Amsterdam    |                     |
  35. +-------------------------------------------------------+
  36.